﻿namespace OpenWaves.ImageTransformations
{
    public class StretchTransformation : ImageTransformation
    {
        public StretchTransformation(int width, int height) : base(width, height)
        {
        }

        public StretchTransformation(string serializedProperties) : base(serializedProperties)
        {
        }

        public override void ApplyToImage(IImage image)
        {
            image.Scale(this.Width, this.Height);
        }

        protected override IImageTransformation Scale(int width, int height)
        {
            return new StretchTransformation(width, height);
        }
    }
}